<template>
  <div class="test">
    <h1>爷爷</h1>
    <parent
      class="item"
      :msg="msg"
      @click="handleClick"
    ></parent>
  </div>
</template>
<script>
import Parent from './Parent.vue'
export default {
  data() {
    return {
      msg: '爷爷给的100块压岁钱'
    }
  },
  components: {
    Parent
  },
  methods: {
    handleClick(data) {
      console.log(data)
    }
  }
}
</script>
<style lang="scss"></style>
